package flirtme.tools;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;

class LoadImageAsyncTask extends AsyncTask<Void, Void, Void>
{
	Context _context;
    ProgressDialog _ProgressDialog;
    
    public LoadImageAsyncTask( Context context) {
    	super();
		_context = context;
	}
    
    @Override
    protected void onPostExecute(Void result) {
    	_ProgressDialog.dismiss();
    }

    @Override
    protected void onPreExecute() {
        _ProgressDialog = ProgressDialog.show(_context, 
                                        "Loading profile image...", "loading");
    }

    @Override
    protected Void doInBackground(Void... params) {
       // your network operation
        return null;
    }
}
